**************************************************
********* Table A7.2: Clustered Standard *********
********* Errors, by state ***********************
**************************************************

do "do_files/prep_GRACE_data/load_prep_GRACE_data.do"
do "do_files/prep_GRACE_data/ballot_level_prep.do"

///****clustered standard errors by state, and years models****///
eststo, title(Latina): quietly probit ballot_newlatwpresMMD  afampoppct asampoppct latpoppct    tlimit  legprof  distrepubstr  openelect  multimem  candperseat allincfmt educcolldeg unemppct stateyear_inclatpct, cluster(v03)
eststo, title(Latino): quietly probit ballot_newlatmpresMMD  afampoppct asampoppct latpoppct    tlimit  legprof  distrepubstr  openelect  multimem  candperseat allincfmt educcolldeg unemppct stateyear_inclatpct, cluster(v03)

estout, cells(b(star fmt(3)) se(par fmt(2))) legend label varlabels(_cons constant) stats( N, fmt(0) label(N))

* clear eststo for displaying future tables
eststo clear

* pausing for users who might be looping through all replication files
pause
